Learn R Programming

circular (version 0.3-7)

[.circular: Extract or Replace Parts of a Circular Object

Description

Operators act on vectors and matrices to extract or replace subsets, methods for Circular Data.

Usage

## S3 method for class 'circular':
[(x, i, \dots)

Arguments

x
object from which to extract elements.
i, ...
elements to extract or replace.

Examples

Run this code
x <- circular(matrix(rwrappednormal(n=100, mu=circular(0)), nrow=5))
dim(x)
x[1,]
x[,1]
x[,1, drop=FALSE]

Run the code above in your browser using DataLab